<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MES_report
 *
 * @author Moon
 */
class MES_report extends CModel{
    //put your code here
    public $data = array();
    public $date='';
    public $page;
    public $dataProvider;
    public static function model($className=__CLASS__) {
        return parent::model($className);
    }
    public function save(){
        $pdf = new makePdf;
        $cargo = cargo::model()->findAll('');
        $pdf->renderPartial('/collection/reportPDF', array('data'=>$this));
        $filename = $pdf->stream('subcert');
    }
}
?>
